std::remainder

From Cppreference

Jump to: navigation, search
Defined in header <cmath>

float       remainder( float x, float y );
(C++11 feature)
double      remainder( double x, double y );
(C++11 feature)
long double remainder( long double x, long double y );
(C++11 feature)

Computes the remainder of the floating point division operation x/y. In difference to fmod, the return type will be negative if fmod(x, y)>y/2.

[edit] Parameters

x, y - floating point values

[edit] Return value

remainder of dividing arguments

[edit] See also

fmod
remainder of the floating point division operation
(function)
div
ldiv
the quotient and remainder of integer division
(function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages